﻿<Window x:Class="JetNettEZEditor.Loading"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Loading" Width="250" Height="100" WindowStyle="None" AllowsTransparency="True" Background="Transparent" Topmost="True" WindowStartupLocation="CenterScreen">
    <Border CornerRadius="10">
        <Border.Background>
        <LinearGradientBrush EndPoint="0,1">
            <GradientStop Offset="0">
                <GradientStop.Color>
                    <Color A="255" R="140" G="140" B="140"></Color>
                </GradientStop.Color>
            </GradientStop>
            <GradientStop Offset="1" Color="Black"></GradientStop>

        </LinearGradientBrush>
        </Border.Background>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Image Name="content" Opacity="0" Width="64" Height="64">
                <Image.Triggers>
                    <EventTrigger RoutedEvent="Image.Loaded">
                        <BeginStoryboard>
                            <Storyboard x:Name="rotation">
                                <DoubleAnimation To="1" Duration="0:0:1"
                                        Storyboard.TargetName="content"
                                        Storyboard.TargetProperty="Opacity"/>
                                <DoubleAnimation From="0" To="359" Duration="0:0:5" RepeatBehavior="Forever"
                                        Storyboard.TargetName="angle"
                                        Storyboard.TargetProperty="Angle"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Image.Triggers>
                <Image.Source>
                    <DrawingImage>
                        <DrawingImage.Drawing>
                            <DrawingGroup>
                                <GeometryDrawing Brush="Transparent">
                                    <GeometryDrawing.Geometry>
                                        <RectangleGeometry Rect="0,0,1,1"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                                <DrawingGroup>
                                    <DrawingGroup.Transform>
                                        <RotateTransform x:Name="angle" Angle="0" CenterX="0.5" CenterY="0.5"/>
                                    </DrawingGroup.Transform>
                                    <GeometryDrawing>
                                        <GeometryDrawing.Pen>
                                            <Pen Thickness="0.1">
                                                <Pen.Brush>
                                                    <SolidColorBrush>
                                                    <SolidColorBrush.Color>
                                                        <Color A="255" R="8" G="142" B="232"></Color>
                                                    </SolidColorBrush.Color></SolidColorBrush>
                                                </Pen.Brush>
                                            </Pen>
                                        </GeometryDrawing.Pen>
                                        <GeometryDrawing.Geometry>
                                            <PathGeometry>
                                                <PathFigure StartPoint="0.9,0.5">
                                                    <ArcSegment Point="0.5,0.1" RotationAngle="90" SweepDirection="Clockwise" IsLargeArc="True" Size="0.4,0.4"/>
                                                </PathFigure>
                                            </PathGeometry>
                                        </GeometryDrawing.Geometry>
                                    </GeometryDrawing>
                                    <GeometryDrawing>
                                        <GeometryDrawing.Brush>
                                            <SolidColorBrush>
                                                <SolidColorBrush.Color>
                                                    <Color A="255" R="8" G="142" B="232"></Color>
                                                </SolidColorBrush.Color>
                                            </SolidColorBrush>
                                        </GeometryDrawing.Brush>
                                        <GeometryDrawing.Geometry>
                                            <PathGeometry>
                                                <PathFigure StartPoint="0.5,0">
                                                    <LineSegment Point="0.7,0.1" />
                                                    <LineSegment Point="0.5,0.2" />
                                                </PathFigure>
                                            </PathGeometry>
                                        </GeometryDrawing.Geometry>
                                    </GeometryDrawing>
                                </DrawingGroup>
                            </DrawingGroup>
                        </DrawingImage.Drawing>
                    </DrawingImage>
                </Image.Source>
            </Image>
            <StackPanel Orientation="Vertical" VerticalAlignment="Center">
            <Label VerticalAlignment="Center" FontSize="18" FontWeight="Bold">
                <Label.Foreground>
                    <SolidColorBrush>
                        <SolidColorBrush.Color>
                            <Color A="255" R="8" G="142" B="232"></Color>
                        </SolidColorBrush.Color>
                    </SolidColorBrush>
                </Label.Foreground>Loading Content</Label>
            <Label VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" FontSize="12">
                <Label.Foreground>
                    <SolidColorBrush>
                        <SolidColorBrush.Color>
                            <Color A="255" R="8" G="142" B="232"></Color>
                        </SolidColorBrush.Color>
                    </SolidColorBrush>
                </Label.Foreground>please be patient</Label>
        </StackPanel>

    </StackPanel>
        </Border>
</Window>
